package cn.supermarket.pojo.dto;

import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class ProductInsertDTO implements Serializable {


    //分类id
    private Integer categoryId;

    //商品名称
    private String title;

    //商品编号
    @NotNull(message = "商品编号不能为空,请重新填写")
    private Integer productId;

    //规格
    private String norm;

    //颜色
    private String color;

    //单位
    private String unit;


}
